﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using XWG.JWBST.ProcessInterfaces;

namespace XWG.JWBST.Factory
{
    public class ProcessFactory
    {
        public static IProcess CreateProcess(string pn)
        {
            string ns = string.Format("XWG.JWBST.{0}Process", pn);
            Assembly assembly = Assembly.Load(ns);
            IProcess rtn = (IProcess)assembly.CreateInstance(ns + ".Process");
            return rtn;
        }
    }
}
